/* @media screen and (min-width:0\0) */
@charset 'utf-8';
@import 'theme';
@import 'color';
@import 'model-beta';

//@media all and (-webkit-min-device-pixel-ratio: 2) {
	/* TOP */
	html,body{
		width: 100%;
		height: 100%;
		font-size: 13px;
	}
	*{	
		margin: 0 auto;
		font-family: 'icomoon',"Segoe UI","Lucida Grande",Helvetica,Arial,"Microsoft YaHei",FreeSans,Arimo,"Droid Sans","wenquanyi micro hei","Hiragino Sans GB","Hiragino Sans GB W3",sans-serif!important;
	}
	a{
		color: $fontColor;
		text-decoration: none;
	}
	.top{
		position: fixed;
		z-index: 1000;
		width: 100%;
		height: 2rem;
		line-height: 2rem;
		background-color: $themeColor;
		background: rgba($themeColor,0.85) !important;
		box-shadow: 0 0 5px 0 $black;
		.left{
			float: left;
			width: 30%;;
			.icon-tag{
				color: $fontColor;
				margin: 0 0.5rem;
			}
		}
		.right{
			width: auto;
			max-width: 50%;
			padding: 0 0.5rem;
			float: right;
			.icon-cart,.icon-user2{
				margin-right: 0.5rem;
			}
		}
	}

	.block{
		height: 2.5rem;
	}
	.admin-top{
		margin: 0 3%;
		background-color: $grayLighter;
		height: 6rem;
		padding: 0.5rem;
		.admin-logo{
			margin-right: 0.5rem;
			float: left;
			width: 6rem;
			height: 6rem;
			.img{
				width: 100%;
			}
		}
		.content{
			width: 70%;
			height: 6rem;
			float: left;
			.content-item{
				overflow: hidden;
				white-space:nowrap; 
				text-overflow: ellipsis;
				line-height: 1.5rem;
				color: $silver;
			}
		}
		
	}


	#main{
		margin: 1rem 3%;
		.mainnav{
			margin-bottom: 0.5rem;
			.nav-li{
				display: inline-block;
				height: 20px;
				box-shadow: 0 1px 4px rgba($grayLight,0.6);
				line-height: 20px;
				width: 6rem;
				text-align: center;
				margin-right: 0.5rem;
			}
		}
		.maintitle{

		}
	}
	#list-button,#list-button .list-button{
	    /*transition*/
	    -webkit-transition: 0.3s ease-in-out;
	    -moz-transition: 0.3s ease-in-out;
	    -ms-transition: 0.3s ease-in-out;
	    -o-transition: 0.3s ease-in-out;
	    transition: 0.3s ease-in-out;

		transform:translateZ(0px);
		-moz-transform:translateZ(0px);
		-webkit-transform:translateZ(0px);
		-o-transform:translateZ(0px); 
	}
	#list-button {
		z-index: 999;
		text-align: center;
		position: fixed!important;
		top: 60px;
		left: 0;
		background-color: $themeColor;
		width: 2rem!important;
		height: 2rem!important;
		min-height: auto!important;
		overflow: hidden!important;
		border-radius: 0.25rem!important;
		opacity: 0.5;
		.list-button{
			display:none!important;
		}
	}
	#list-button:before{
		content: "\2261";
		display: block;
		color: $fontColor;
		text-align: center;
		font-size: 2rem;
		line-height: 2rem;
		height: 2rem;
	}
	#list-button:hover:before,#list-button.hover:before{
		content:"\5bfc \822a";
		font-size: 1.5rem;
		line-height: 2rem;
		color: $fontColor;
		// height: 0;
	}
	#list-button:hover,#list-button.hover{
		width: 6rem!important;
		height: auto!important;
		opacity: 1;
		.list-button{
			display:block!important;
			width: 100%!important;
			height: 2rem!important;
			line-height: 2rem!important;
			margin: 0!important;
			border: 1px solid #666;
			border-width: 0 1px 1px 0!important;
		}
	}



	.orders{
		clear: both;
		width: 100%;
		min-height: 150px;
		position: relative;
		
		.order-box{ 
			width: 100%;
			margin-top: 10px;
			box-shadow: 0 1px 6px 0 rgba($grayLight,0.5);
			border-radius: 2px;
			overflow: hidden;
			padding-bottom: 10px;
			.title{
				overflow: hidden;
				padding: 0.5rem;
				background-color: rgba($themeColor,0.5);
				white-space:nowrap;
				text-overflow: ellipsis;
			}
			.goods{
				padding-left: 10px;
				margin-right: 10px;
				margin-top: 5px;
			}
			.goods-item{
				height: 36px;
				margin-bottom: 5px;
				.goods-image{
					width: 36px;
					height: 36px;
					margin-right: 5px;
					float: left;
					img{
						border:1px solid $themeColor;
						border-radius: 50%;
					}
				}
				.goods-info-item{
					height: 36px;
					// overflow: hidden;
					@include newLine();
					float: left;
					a{
						color: $cyan;
					}
				}
			}
			.price{
				margin-top: 5px;
				padding-left: 10px;
				.price-item{
					margin-top: 15px;
					&.first{
						font-weight: bold;
						margin-top: 0;
					}
				}
			}
			.method{
				padding-left: 10px;
				margin-top: 5px;
				margin-bottom: 5px;
				input[type="text"]{
					width: 80px;
					margin: 5px 5px;
				}
				.method-item,button{
					display: inline-block;
					margin-top: 5px;
					width: 100px;
					margin-right: 0.5rem;
					padding: 5px 10px;
					border-radius: 2px;
					border: 0;
					box-shadow: 0 1px 4px 0 rgba($grayLight,0.3);
					cursor: pointer;
					&:hover{
						background-color: $btnHover;
					}
				}
			}
		}
	}


	.shelves{
		width: 100%;
		.goods-title,.goods-price,.goods-num,.goods-tag{
			width: 50%;
			border: 1px solid $themeColor;
			border-radius: 0.3rem;	
			margin-right: 0.5rem;
		}
		#entry{
			width: 100%;
			height: auto;
			margin-top: 5px;
			.kinds{
				width: 100%;
				height: auto; 
				margin-bottom: 5px;
				@include newLine();
				.kinds-item{
					display: inline-block;
					cursor: pointer;
					padding: 2px 3px;
					margin: 3px;
					width: auto;
				}
			}
		}
		.item,.item.title{
			margin: 20px 0;
			clear: both;
		}
		.title{
			#jSouperApp #main &{
				margin-top: 15px;
				width: auto;
			}
			
		}

		button{
			padding: 0;
			border: 0;
			width: 80px;
			font-weight: normal;
			min-height: 20px;
			height: 20px;
		}
		.upload_images{
			width: 100%;
			height: auto;
			// max-height: 185px;
			.title{
				margin-bottom: 0.2rem;
			}
			.image_show{
				width: 100%;
				height: auto;
				margin: 15px 0;
				max-height: 160px;
				overflow: hidden;
				img{
					width: 80px;
					height: 80px
				}
			}
		}
		.goods-unit{
			width: 30%;
			border: 1px solid $themeColor;
			border-radius: 0.3rem;
		}
		.summary{
			width: 100%;
			height: auto;
			.title{
				#jSouperApp #main &{
					width: auto
				}
				float: left;
			}
			&.item .goods_summary{
				width: 70%;
				border: 1px solid $themeColor;
				border-radius: 0.3rem;
				height: 80px;
				resize: none;
			}
		}
		.submit{
			padding: 0;
			border: 0;
			margin-top: 10px;
			width: 100%;
			.btn{
				padding: 0;
				border: 0;
				line-height: 20px;
				height: 20px;
				width: 60px;
			}
		}
	}


	.evaluation{
		width: 100%;
		.evaluation_list{
			hr{
				clear: both;
			}
			width: 100%;
			margin-top: 10px;
			.evaluation_item{
				clear: both;
				width: 100%;
				min-height: 30px;
				margin-top: 10px;
				margin-bottom: 10px;
				.item{
					padding: 5px 0;
					@include newLine();
					margin-left: 0;
				}
				.score{
					width: 50px;
					text-align: center;
					color: $red;
					font-weight: bold;
				}
				.evaluation{
					padding-left: 20px;
					padding-right: 20px;
					.time{
						color: $silver;
					}
				}
				.buyer{
					width: 100px;
					padding-right: 20px;
					padding-left: 20px;
					span{
						color: $themeColor;
					}
				}
				.goods{
					padding-left: 20px;
					padding-right: 20px;
					a{
						color: $blue;
					}
					.price{
						color: $btnHover;
						margin-left: 0.5rem;
					}
				}
				.method{
					padding-left: 20px;
					.replytext{
						width: 65%;
						border-radius: 0.3rem;
						border: 1px solid $themeColor;
						margin-right: 0.5rem;
						height: 20px;
					}
					.replybtn{
						border: 0;
						padding: 0.3rem;
					}
				}
				.commenter,.content{
					width: 100%;
					@include newLine();
					margin-bottom: 0.5rem;
				}
				.comments{
					padding: 0
				}
				.reply{
					display: none;
				}
			}
		}
	}

	.storeinfo{
		width: 100%;
		.info_box{
			width: 100%;
			.table{
				width: 100%;
				margin-left: 0;
				.item{
					margin: 0;
					clear: both;
					.title{
						float: left;
						font-weight: bold;
						
						color: $black;
						min-height: 25px;
						padding: 5px 0;
						width: 95px;
						margin-top: 10px;
					
					}
					.text{
						@include newLine();
						padding: 5px 0;
						float: left;
						margin-top: 10px;
						width: auto;
						input{
							width: 175px;
							height: 20px;
							border: 1px solid $themeColor;
							border-radius: 0.3rem;
						}
						textarea{
							width: 350px;
							height: 66px;
							border: 1px solid $themeColor;
							border-radius: 0.3rem;
						}
						img{
							width: 100px;
							height: 100px;
						}
						.open-time{
							width: 40px;
							margin: 0 5px;
							margin-left: 0;
						}
					}
				}
			}
		}
	}


	.goodsmanager{
		width: 100%;
		

		.goods_list{
			width: auto;
			margin-top: 10px;
			max-width: 100%; 
			table{
				margin-left: 0;
				td{
					text-align: center;
					@include newLine();
					padding-left: 5px;
					padding-right: 5px; 

					a{
						color: $themeColor;
						&:hover{
							color: $btnHover;
						}
					}

					input{
						border: 0;
						padding: 0;
						min-height: 20px;
						height: 20px;
						padding: 0 3px;
						line-height: 20px;
						font-weight: normal;
						margin-left: 5px;
						margin-right: 5px;
					}
					img{
						border-radius: 50%;
						border: 1px $themeColor solid;
					}
				}

				thead{
					background-color: $ashen;
					.name{
						width: 57px;
					}
					.number{
						width: 145px;
					}
					.price{
						width: 60px;
					}
					.status{
						width: 75px;
					}
					.method{
						width: 170px;
					}
				}
			}
		}
	}


	.tilemanager{
		width: 100%;
		height: auto;
		.box{
			position: relative;
			@include newLine();
			width: 100%;
			margin-top: 10px;
			*{
				@include comic_1(0.5,0);
			}
			.newtag{
				width: 50%;
				border: 1px solid $themeColor;
				border-radius: 0.3rem;
				height: 20px;
			}
			.search-text{
				border: 1px solid $themeColor;
				border-radius: 0.3rem;
				height: 20px;
			}
			button{
				font-weight: normal;
				border: 0;
				padding: 0;
				min-height: 20px;
				height: 20px;
				width: 80px;
				line-height: 20px;
				margin-left: 5px;
				margin-right: 2px;
				&.icon-quill{
					height: auto;
					width: auto;padding: 0 5px;
				}
				&:hover{
					background-color: $btnHover;
				}
			}
			.tile{
				overflow: hidden;
				@include comic_1(0.5,0);
				margin: 3px 5px;
				display: inline-block;
				padding: 3px;
				cursor: pointer;
				@include radius(2);
				box-shadow: 0 0 4px 0 rgba($grayLight,0.6);
				&:hover{
					@include BgTransparentAll(0.65,65);
				}
				
				.tile-title{
					text-align: center;
					cursor: pointer;
					margin:0;
					color: $fontColor;
				}
			}
			.visited{
				background-color: $btnHover;
				border: 1px solid $btnHover;
			}

			.goods-box{
				margin-top: 15px;
				width: 100%;
				height: auto;
				.tile-goods,.search-goods{
					width: 100%;
					height: auto;
					margin-bottom: 1.5rem;
				}
				.delete,.add,.search{
					width: 20px;
					height: 20px;
					min-height: 20px;
					min-width: 20px;
					font-weight: normal;
					border: 0;
					padding: 0;
					line-height: 20px;
					margin-left: 5px;
					margin-right: 2px;
					background-color: $themeColor;
					&:hover{
						background-color: $btnHover;
					}

				}
				.title{
					width: 100%;
					overflow: hidden;
					height: auto;
				}
				.search-box{
					width: 80px;
					height: 17px;

				}
				.box{	
					margin-top: 5px;
					padding: 5px;
					border: 1px solid $themeColor;
					.delete,.add{
						float: right;
					}
					.item{
						.img{
							width: 50px;
						}
						.btn{
							width: 25px;
						}
						.info{
							text-align: left;
							line-height: 30px;
							display: inline-block;
						}
						line-height: 25px;
						.goods-img{
							margin-right: 5px;
							border: 1px solid $themeColor;
							display: inline-block;
							width: 30px;
							height: 30px;
							border-radius: 50%;
						}
						height: auto;
						margin: 2px 0;
						&:hover{
							@include BgTransparentAll(0.5,50);
						}
					}
				}
			}
		}
	}

	.discount{
		width:100%;
		.box{
			width: 100%;
			.title{
				background-color: $grayLighter;
				width: 150px !important;
				margin: 3px;
				margin-left: 0;
				padding: 3px;
				line-height: 19px;
			}
			input{
				width: 45px;
				min-height: 15px;
				margin: 3px; 
				border-radius: 0.3rem;
				border: 1px solid $themeColor;
			}
			button{
				height: 20px;
				border: 0;
				padding: 0 0.5rem;
				line-height: 20px;
				font-weight: normal;
			}
		}
	}

	.theme{
		width: 100%;
		.box{
			@include newLine();
			width: 100%;
			margin-top: 10px;
			.info{
				margin: 10px 0;
				width: 100%;
				height: auto;
			}
			.submit{
				padding: 0;
				border: 0;
				height: 20px;
				width: 50px;
				margin-top: 10px;
			}
			.item{
				display: inline-block;
				width: 80px;
				height: 100px;
				.color{
					width: 100%;
					height: 80%;
					.color-item{
						width: 50%;
						height: 100%;
						float: left;
					}
				}
				.theme{
					width: 100%;
					height: 80%;
				}
				.checkbox{
					width: 100%;
					height: 15%;
					text-align: center;
					padding-top: 5%;
				}
			}
		}
	}

	.mainset{
		width: 100%;
		height: auto;
		.info_box{
			@include newLine();
			margin-top: 15px;
			width: 100%;
			height: auto;
			.imgset{
				margin-bottom: 15px;
				display: inline-block;
				margin-right: 15px;
				width: auto;
				height: auto;
				.img{
					display: block;
					margin: 5px 0;
					width: 75%;
				}
				.delete{
					height: 20px;
					margin-top: 0.2rem;
					line-height: 20px;
					border: 0;
					padding: 0 0.5rem;
				}
			}
			.submit{
				width: 80px;
				height: 20px;
				min-height: 20px;
				border: 0;
				padding: 0;
				font-weight: normal;
			}
		}
	}

	.points{
		width: 100%;
		.box{
			width: 100%;
			margin-top: 15px;
			table{
				&.info{
					width: 100%;
					text-align: center;
					thead{
						background-color: $grayLighter;
					}
					td{
						padding: 3px 5px;
					}
					.do{
						border: 0;
						background-color: $themeColor;
						min-height: 19px;
						&:hover{
							background-color: $btnHover;
						}
					
					}
				}
				&.rule{
					width: 100%;
					margin-top: 25px;
					text-align: center;
					thead{
						background-color: $grayLighter;
					}
					
					td{
						padding-top: 3px 5px;
					}
					input{
						width: 100%;
						border-top: 0;
						border-right: 0;
						border-left: 0;
						border-bottom: 1px solid $themeColor;
					}
					button{
						padding: 0 0.5rem;
						height: 20px;
						line-height: 20px;
						border: 0;
						margin: 0 3px;
						min-height: 19px;
					}
				}
			}
		}
	}


















	#turn-page{
		clear: both;
		margin-top: 15px;
		width: 100%;
		height: 1.5rem;
		color: $fontColor;
		.pre-page,.next-page{
			width: 1.5rem;
			height: 1.5rem;
			background-color: $themeColor;
			text-align: center;
			font-weight: bold;
			line-height: 1.5rem;
			display: inline-block;
			cursor: pointer;
			margin: 0 0.5rem;
			&:hover{
				background-color: $btnHover;
			}
			&.disabled{
				background-color: $grayLight;
				cursor: text;
			}
		}
		.pages{
			display: inline-block;
		}
		.page{
			width: 1.5rem;
			height: 1.5rem;
			display: inline-block;
			background-color:$themeColor;
			font-weight: bold;
			text-align: center;
			line-height: 1.5rem;
			cursor: pointer;
			&:hover{
				background-color: $btnHover;
			} 
			&.selected{
				background-color: $btnHover;
			}
		}
	}


	.bottom{
		margin-top: 3.5rem;
		margin-bottom: 1.5rem;
		text-align: center;
		color: $grayLight;
		a{
			color: $grayLight;
		}
	}
//}